package com.hongdee.test.trans.service;

import com.hongdee.test.trans.mapper.TestDemo;
import com.hongdee.test.trans.mapper.TestMapperInterFace;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author zhangkai
 * @desc 一句话描述
 **/
@Transactional
@Service
public class ServiceImpl implements IService {

    @Autowired
    TestMapperInterFace testMapperInterFace;


    @Override
    public void test() {
        TestDemo t1 = new TestDemo();
        t1.setDemo("111");
        t1.setId("123456");
        testMapperInterFace.insertT(t1);
        TestDemo t2 = new TestDemo();
        t2.setDemo("1112222");
        t2.setId("12dddddddddddddddddddddddddddddddddddd3");
        testMapperInterFace.insertT(t2);
    }
}
